package com.wms.mapper;

import com.github.pagehelper.Page;
import com.wms.dto.GoodsOutPageQueryDTO;
import com.wms.entity.WmsGoodsout;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GoodsOutMapper {
    Page<WmsGoodsout> pageQuery(GoodsOutPageQueryDTO goodsOutPageQueryDTO);

    void delete(List<Integer> ids);

    void save(WmsGoodsout wmsGoodsout);

    void update(WmsGoodsout wmsGoodsout);

    @Select("select * from wms_goodsout where id = #{id}")
    WmsGoodsout getById(int id);
}
